package com.matchmaking.system.service.impl;


import com.matchmaking.system.domain.SysDictData;
import com.matchmaking.system.domain.SysDictType;
import com.matchmaking.system.domain.vo.SysDictTypeVo;
import com.matchmaking.system.mapper.SysDictTypeMapper;
import com.matchmaking.system.service.SysDictTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysDictTypeServicelmpl implements SysDictTypeService {

    @Autowired
    SysDictTypeMapper dictTypeMapper;

    /**
     * 字典表查询
     * @return
     */
    @Override
    public List<SysDictType> selectAll(SysDictType dictType) {
        return dictTypeMapper.selectAll(dictType);
    }

    /**
     * 插入操作
     * @param sysDictType
     */
    @Override
    public void insertObject(SysDictType sysDictType) {
        dictTypeMapper.insertObject(sysDictType);
    }


    /**
     * 根据id删除
     * 逻辑删除
     * @param dictType
     */
    @Override
    public void delById(SysDictType dictType) {
        dictTypeMapper.delById(dictType);
    }

    /**
     * 修改
     * @param dictType
     */
    @Override
    public void updateObject(SysDictType dictType) {
        dictTypeMapper.updateObject(dictType);
    }

    /**
     * 根据类型展示报表
     * @return
     */
    @Override
    public List<SysDictTypeVo> getByBingChart() {
        return dictTypeMapper.getByBingChart();
    }


}
